﻿using UnityEngine;
using System.Collections;

public class GateLoginRsp : BaseModel {

    public long roleId;
    public string name;
    public long money;
    public int sex;
    public string headIcon;


    public void ReadFrom(ByteBuffer buffer)
    {
        this.roleId = buffer.ReadLong();
        this.name = buffer.ReadUTF();
        this.money = buffer.ReadLong();
        this.sex = buffer.ReadInt();
        this.headIcon = buffer.ReadUTF();
    }

    public void WriteTo(ByteBuffer buffer)
    {
		buffer.WriteLong(roleId);
		buffer.WriteUTF(name);
		buffer.WriteLong(money);
		buffer.WriteInt(sex);
		buffer.WriteUTF(headIcon);
	}
}
